package com.fcscs.ecms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fcscs.cservice.domain.CookOptionItem;
import com.fcscs.cservice.domain.SpicyDescription;
import com.fcscs.cservice.domain.model.CookOptionItemView;
import com.fcscs.cservice.domain.model.SpicyView;
import com.fcscs.ecms.dao.ECMSInRoomConfDao;
import com.fcscs.ecms.service.ECMSInRoomConfManager;

@Service("ecmsInRoomConfManager")
public class ECMSInRoomConfManagerImpl implements ECMSInRoomConfManager {

	@Autowired
	ECMSInRoomConfDao inRoomDao;
	
	@Override
	public CookOptionItem getCookOptionItem(long id) {
		return inRoomDao.getCookOptionItem(id);
	}

	@Override
	public List<CookOptionItem> getCookOptionItemList(long orgId, long propId,boolean isCurrent) {
		return inRoomDao.getCookOptionItemList(orgId, propId, isCurrent);
	}

	@Override
	public List<CookOptionItem> getCookOptionItemList(long orgId, long propId,long versionId) {
		return inRoomDao.getCookOptionItemList(orgId, propId, versionId);
	}

	@Override
	public List<CookOptionItem> saveCookOptionItemList(List<CookOptionItem> coiList) {
		return inRoomDao.saveCookOptionItemList(coiList);
	}

	@Override
	public CookOptionItem createCookOptionItem(CookOptionItem coi) {
		return inRoomDao.createCookOptionItem(coi);
	}

	@Override
	public CookOptionItem saveCookOptionItem(CookOptionItem coi) {
		return inRoomDao.saveCookOptionItem(coi);
	}

	@Override
	public boolean deleteCookOptionItem(CookOptionItem coi) {
		return inRoomDao.deleteCookOptionItem(coi);
	}

	@Override
	public boolean permDeleteCookOptionItem(CookOptionItem coi) {
		return inRoomDao.permDeleteCookOptionItem(coi);
	}

	@Override
	public boolean isCookOptionItemTaken(long orgId, long propId, String name,Long id, long versionId) {
		return inRoomDao.isCookOptionItemTaken(orgId, propId, name, id, versionId);
	}

	@Override
	public List<CookOptionItemView> getCookOptionItemViewList(long orgId,long propId) {
		return inRoomDao.getCookOptionItemViewList(orgId, propId);
	}

	@Override
	public SpicyDescription getSpicyDescription(long id) {
		return inRoomDao.getSpicyDescription(id);
	}

	@Override
	public List<SpicyDescription> getSpicyDescriptionList(long orgId,long propId, boolean isCurrent) {
		return inRoomDao.getSpicyDescriptionList(orgId, propId, isCurrent);
	}

	@Override
	public List<SpicyDescription> getSpicyDescriptionList(long orgId,long propId, long versionId) {
		return inRoomDao.getSpicyDescriptionList(orgId, propId, versionId);
	}

	@Override
	public SpicyDescription createSpicyDescription(SpicyDescription spicy) {
		return inRoomDao.createSpicyDescription(spicy);
	}

	@Override
	public SpicyDescription saveSpicyDescription(SpicyDescription spicy) {
		return inRoomDao.saveSpicyDescription(spicy);
	}

	@Override
	public boolean deleteSpicyDescription(SpicyDescription spicy) {
		return inRoomDao.deleteSpicyDescription(spicy);
	}

	@Override
	public boolean permDeleteSpicyDescription(SpicyDescription spicy) {
		return inRoomDao.permDeleteSpicyDescription(spicy);
	}

	@Override
	public boolean isSpicyDescriptionTaken(long orgId, long propId,String name, Long id, long versionId) {
		return inRoomDao.isSpicyDescriptionTaken(orgId, propId, name, id, versionId);
	}

	@Override
	public List<SpicyView> getSpicyViewList(long orgId, long propId) {
		return inRoomDao.getSpicyViewList(orgId, propId);
	}

}
